package com.bristua.tencent.rtc.sdk.room.business;

import android.support.annotation.NonNull;

import com.bristua.tencent.rtc.sdk.room.IRtcRoomBusiness;
import com.bristua.tencent.rtc.sdk.room.business.dao.impl.CreateRoomDaoImpl;
import com.bristua.tencent.rtc.sdk.room.business.dao.impl.DestroyRoomDaoImpl;
import com.bristua.tencent.rtc.sdk.room.business.dao.impl.EnterRoomDaoImpl;
import com.bristua.tencent.rtc.sdk.room.business.dao.impl.ExitRoomDaoImpl;

/**
 * @Author: richsjeson.
 * @Description: TODO()
 * @Date:Created in 2019/1/21 12:05 AM.
 * @Modified By:
 */
public class RtcRoomBusinessImpl implements IRtcRoomBusiness {
    @Override
    public void createRoom(@NonNull final String pRoomId, @NonNull final String pUserId) {
        new CreateRoomDaoImpl().createRoom(pRoomId,pUserId);
    }

    @Override
    public void enterRoom(@NonNull final String pRoomId, @NonNull final String pUserId) {

        new EnterRoomDaoImpl().enterRoom(pRoomId,pUserId);
    }

    @Override
    public void exitRoom(@NonNull final String pRoomId, @NonNull final String pUserId) {

        new ExitRoomDaoImpl().exitRoom(pRoomId,pUserId);
    }

    @Override
    public void destroyRoom(@NonNull final String pRoomId, @NonNull final String pUserId) {

        new DestroyRoomDaoImpl().destroyRoom(pRoomId,pUserId);
    }
}
